package com.snack.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 代取分类配置实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_pickup_category")
@Schema(description = "代取分类配置")
public class PickupCategory extends BaseEntity {

    @Schema(description = "分类名称（如：取外卖、取快递）")
    private String name;

    @Schema(description = "分类图标")
    private String icon;

    @Schema(description = "分类描述")
    private String description;

    @Schema(description = "对应的服务类型：2-取快递，3-取外卖，4-代取奶咖")
    @TableField("service_type")
    @JsonProperty("serviceType")
    private Integer serviceType;

    @Schema(description = "基础价格")
    @TableField("base_price")
    @JsonProperty("basePrice")
    private BigDecimal basePrice;

    @Schema(description = "是否需要取件码：0-否，1-是")
    @TableField("need_pickup_code")
    @JsonProperty("needPickupCode")
    private Integer needPickupCode;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态：0-禁用，1-启用")
    private Integer status;
}

